package com.wectrls.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author chenjian
 * @Package
 * @Description:
 * @date 2019/7/3 17:51
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "custom.tips.exception")
public class ExceptionMessageProperties {

    /**
     * 验证码错误
     */
    public String errorCode = "error code";
    /**
     * 条件不完整
     */
    private String IncompleteConditions = "Incomplete conditions";

    /**
     * 多数据异常
     */
    private String toManyData = "To many data or no date exception";


    /**
     * 验证码错误
     */
    private String codeError = "Verification code error";

    /**
     * 无相关用户
     */
    private String noUserInfo = "No user information";

    /**
     * 角色初始化异常
     */
    private String roleInitError = "Role initialization exception";

    /**
     * 不合法的登录
     */
    private String illegalLogin = "Illegal login";

    /**
     * 不允许跨资源访问
     */
    private String crossResourceNotAllowed = "Cross-resource access is not allowed";

    /**
     * 登陆信息异常
     */
    private String loginInfoError = "Logon information exception";

    /**
     * 执行数据状态不符
     */
    private String StateInconsistency = "The reason for execution failure is data state exception";

    /**
     * 关联数据异常
     */
    private String associatedDataException = "Associated Data Exceptions";

    /**
     * 数据已经删除
     */
    private String dataDeleted = "Data deleted cannot be executed";

    /**
     * 用户配置信息异常
     */
    private String userConfigException = "User's configuration information exception";

    /**
     * 资源被占用
     */
    private String resourcesOccupied = "Resources occupied";

    /**
     * 手机号格式不正确
     */
    private String phoneFormatError = "Incorrect format of mobile phone number";

    /**
     * 拒绝服务
     */
    private String denialOfService = "Access to servers is not allowed";

    /**
     * 数据被锁定
     */
    private String dateLocked = "Data is locked";

    /**
     * 暂停注册新会员
     */
    private String suspensionOfRegistration = "Data exception, suspend registration of new users";

    /**
     * 该资源为空
     */
    private String emptyResource = "This resource is empty";

    /**
     * 重复操作
     */
    private String repeatOperation = "Repeat operation";

    /**
     * 未登录状态
     */
    private String notLoggedIn = "Not logged in";

    /**
     * 数据已经通过验证
     */
    private String dateValidated = "Data has been validated";
}
